package edu.hitsz.factory.aircraft;

import edu.hitsz.aircraft.AbstractAircraft;
import edu.hitsz.aircraft.EliteAircraft;
import edu.hitsz.application.ImageManager;
import edu.hitsz.application.Main;


/**
 * 精英敌机工厂
 * @author HMount
 */
public class EliteAircraftFactory implements AircraftFactory {

    @Override
    public AbstractAircraft createAircraft(int hp){
        return new EliteAircraft(
                (int) (Math.random() * (Main.WINDOW_WIDTH - ImageManager.ELITE_ENEMY_IMAGE.getWidth())) * 1,
                (int) (Math.random() * Main.WINDOW_HEIGHT * 0.2) * 1,
                -5,
                5,
                hp);
    }
}
